package com.whfc.quality.dao;

import com.whfc.quality.entity.QualityFineImg;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QualityFineImgMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(QualityFineImg record);

    int insertSelective(QualityFineImg record);

    QualityFineImg selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(QualityFineImg record);

    int updateByPrimaryKey(QualityFineImg record);

    /**
     * 批量添加
     *
     * @param findId
     * @param urls
     */
    void insertAll(@Param("findId") Integer findId, @Param("urls") List<String> urls);

    /**
     * 使用质量罚单id查询图片
     *
     * @param fineId
     * @return
     */
    List<String> selectByFineId(Integer fineId);
}